package pratice;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ThreadTest {
	public static void main(String[] args) {
		Random random = new Random();
		for (int i = 0; i < 10; i++) {
			List<Integer> list = new ArrayList<>();
			for(int j=0;j<10;j++){
				Integer a = random.nextInt(100);
				list.add(a);
			}
			
			new Thread(new Runnable() {

				@Override
				public void run() {
					try {
						Thread.sleep(1000);
					} catch (InterruptedException e) {
						e.printStackTrace();
					}
					System.out.println(Thread.currentThread().getName() + ":" + list);
				}
			}).start();
		}
		System.out.println("end");
	}
}
